import Person from './person' ;
class Teacher extends Person{
    constructor(_id,_name,_age,_klass){
        super(_id,_name,_age);
        this.klass = _klass ;
    }
    introduce(){
        if(this.klass){
            return super.introduce() + ` I am a Teacher. I teach Class ${this.klass.number}.` ;
        }else{
            return super.introduce() + ` I am a Teacher. I teach No Class.` ;
        }
    }
}
module.exports = Teacher ;